package com.woniu.payback_font.util;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "jwt")
@Api(value = "jwt注入配置信息（可再application.yml 更改配置信息）")
public class JwtProperties {

    @ApiModelProperty(name = "alg",value = "声明加密的算法类型 HS256")
    private String alg ;

    @ApiModelProperty(name = "typ",value = "声明类型 jwt")
    private String typ ;

    @ApiModelProperty(name = "issuer",value = "签发者 daijvhua")
    private String issuer ;

    @ApiModelProperty(name = "payback_font",value = "签发面向的用户 payback")
    private String suject ;

    @ApiModelProperty(name = "expiration",value = "jwt的过期时间，1800000 这个过期时间必须要大于签发时间")
    private long expiration ;

    @ApiModelProperty(name = "secret",value = "设置私有字段，一个私密 AE86woniu")
    private String secret ;

    @ApiModelProperty(name = "mCode",value = "设置私有字段，保存用户mCode")
    private String mCode ;

    @ApiModelProperty(name = "mName",value = "设置私有字段，保存用户mName")
    private String mName;


    public String getAlg() {
        return alg;
    }

    public void setAlg(String alg) {
        this.alg = alg;
    }

    public String getTyp() {
        return typ;
    }

    public void setTyp(String typ) {
        this.typ = typ;
    }

    public String getIssuer() {
        return issuer;
    }

    public void setIssuer(String issuer) {
        this.issuer = issuer;
    }

    public String getSuject() {
        return suject;
    }

    public void setSuject(String suject) {
        this.suject = suject;
    }

    public long getExpiration() {
        return expiration;
    }

    public void setExpiration(long expiration) {
        this.expiration = expiration;
    }

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    public String getmCode() {
        return mCode;
    }

    public void setmCode(String mCode) {
        this.mCode = mCode;
    }

    public String getmName() {
        return mName;
    }

    public void setmName(String mName) {
        this.mName = mName;
    }


}
